#include "News.h"

News::News()
{
	date=time(NULL);

}

News::News(const std::string &title, const std::string &description, const time_t & date)
{
	this->title=title;
	this->description=description;
	this->date=date;

}

void News::setDate(const time_t &date)
{
	this->date=date;
}

void News::setDescription(const std::string &description)
{
	this->description =description;

}

void News::setTitle(const std::string &title)
{
	this->title=title;
}

const string & News::getDescription()const
{
	return this->description;
}

const string & News::getTitle()const
{
	return this->title;
}
const time_t& News::getDate()const
{
	return this->date;
}
